<?php

namespace Swof\Event;

use Swof\Server\Server;

abstract class Listener
{
    protected $name = 'listener';

    abstract public function handle($args = []);

    /**
     * Note: get name
     *
     * @return string
     * @author: Zhao Zhiqiang
     * @since: 2021/6/2 17:43
     */
    public function getName(): string
    {
        return $this->name;
    }
}